package com.zjitc.controller;

import com.zjitc.model.Order;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.view.InternalResourceView;

/**
 * Created by Administrator on 2018/6/19.
 */
@Controller
public class Alipay {
    private ModelAndView mv=new ModelAndView();
    @RequestMapping("/Alipay")
    public ModelAndView alipay(){
        Order order=new Order();
        order.setOid("123");
        order.setTotal(100);
        mv.addObject("order",order);
        mv.setView(new InternalResourceView("/WEB-INF/alipay/index.jsp"));
        return mv;
    }
    @RequestMapping("/fu")
    public ModelAndView fu(){
        Order order=new Order();
        order.setOid("123");
        order.setTotal(100);
        mv.addObject("order",order);
        mv.setView(new InternalResourceView("/WEB-INF/alipay/alipay.trade.page.pay.jsp"));
        return mv;
    }


}
